package org.power.bus.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("upload")
@ApiModel(value = "Upload对象", description = "文件上传表")
public class Upload implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "上传表ID")
    private Integer id;

    @TableField(value = "file_name")
    @ApiModelProperty(value = "文件名称")
    private String fileName;

    @TableField(value = "file_date")
    @ApiModelProperty(value = "文件日期")
    private String fileDate;

    @TableField(value = "upload_date")
    @ApiModelProperty(value = "上传日期")
    private String uploadDate;

    @TableField(value = "file_type")
    @ApiModelProperty(value = "文件类型，current电流表或者temperature温度表")
    private String fileType;
}
